import { isEqual, omit } from 'lodash';
import React from 'react';
import AceEditor from '../AceEditor/AceEditor';

function MemoAceEditor(props) {
  return <AceEditor {...props} />;
}

export default React.memo(MemoAceEditor, (prev, next) => {
  return isEqual(omit(prev, ['getInstance', 'onChange']), omit(next, ['getInstance', 'onChange']));
});
